<?php get_header(); ?>
        
        <!-- MIDDLE -->
        <section class="middle row">
		
            <!-- CONTENT -->
            <div class="span8 content">
				
                <!-- PAGE HEADER -->
                <div class="page-header">
				
					<h1>
					
						<b><?php single_post_title(); ?></b>
						
						<small><?php echo get_post_meta( get_the_ID(), 'page_subtitle', true ); ?></small>
						
					</h1>
					
				</div>
                <!-- end PAGE HEADER -->
				
				<?php
				
					if ( get_option( 'contact_inf_title' ) != "" )
					{
						echo '<h3>' . stripcslashes( get_option( 'contact_inf_title' ) ) . '</h3>';
					}
				
					if ( get_option( 'contact_inf_text' ) != "" )
					{
						echo '<p>' . stripcslashes( get_option( 'contact_inf_text' ) ) . '</p>';
					}
					
				?>
				
                <!-- MAP -->
				<?php
				
					if ( ! get_option( 'hide_google_map' ) )
					{
						?>
							<div class="map">
							
								<iframe width="100%" height="<?php if ( get_option( 'google_map_height' ) != "" ) { echo get_option( 'google_map_height' ); } else { echo '200'; } ?>" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="<?php if ( stripcslashes( get_option('google_map_url') ) != "" ) { echo stripcslashes( get_option('google_map_url') ); } else { echo 'http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=little+italy&amp;aq=&amp;sll=36.558188,-86.709595&amp;sspn=3.878053,8.453979&amp;vpsrc=0&amp;ie=UTF8&amp;hq=&amp;hnear=Little+Italy,+New+York&amp;t=m&amp;ll=40.71916,-73.997297&amp;spn=0.014702,0.054417&amp;z=14&amp;iwloc=A&amp;output=embed'; } ?>"></iframe>
								
							</div>
						<?php
					}
				?>
                <!-- end MAP -->
                
                <!-- CONTACT FORM -->
				<?php
				
					if ( ! get_option( 'hide_contact_form' ) )
					{
						?>
							<form id="contact-form" method="post" action="<?php echo get_template_directory_uri(); ?>/contact_send_mail.php" class="form-horizontal validate-form">
							
								<fieldset>
								
									<input type="hidden" name="email_to" id="email_to" value="<?php echo get_option('contact_form_email'); ?>" />
									
									<input type="hidden" name="site_name" id="site_name" value="<?php echo get_bloginfo( 'name' ); ?>" />
									
									<div class="contact-form row">
									
										<div class="span4">
											<div>
												<label class="control-label" for="name"><?php echo __( 'Name', 'responsy' ); ?></label>
												<input class="text required" id="name" name="name" type="text">
											</div>
											<div>
												<label class="control-label" for="email"><?php echo __( 'E-Mail', 'responsy' ); ?></label>
												<input class="text required email" id="email" name="email" type="text">
											</div>
										</div>
										
										<div class="span4">
											<label class="control-label" for="message"><?php echo __( 'Message', 'responsy' ); ?></label>
											<textarea class="text required" id="message" name="message"></textarea>
										</div>
										
										<div class="submit-area span8">
										
											<?php
											
												$contact_form_button_color = get_option( 'contact_form_button_color' );
												
												if ( $contact_form_button_color == "White" ) { $contact_form_button_color_out = "btn-default"; }
												elseif ( $contact_form_button_color == "Blue" ) { $contact_form_button_color_out = "btn-primary"; }
												elseif ( $contact_form_button_color == "Sky Blue" ) { $contact_form_button_color_out = "btn-info"; }
												elseif ( $contact_form_button_color == "Green" ) { $contact_form_button_color_out = "btn-success"; }
												elseif ( $contact_form_button_color == "Yellow" ) { $contact_form_button_color_out = "btn-warning"; }
												elseif ( $contact_form_button_color == "Red" ) { $contact_form_button_color_out = "btn-danger"; }
												else { $contact_form_button_color_out = ""; }
												
											?>
											<button type="submit" class="btn <?php echo $contact_form_button_color_out; ?> btn-large"><?php echo __( 'SEND', 'responsy' ); ?></button>
											
											<input type="hidden" name="submitted" id="submitted" value="true" />
											
										</div>
									</div>
									
								</fieldset>
								
							</form>
						<?php
					}
				?>
                <!-- end CONTACT FORM -->
				
				<?php
				
					if ( have_posts() ) :

						while ( have_posts() ) : the_post();
					
							the_content();
							
							comments_template( '', true );
						
						endwhile;
						
					endif;
					
				?>
			
            </div>
            <!-- end CONTENT -->
			
            <!-- SIDEBAR -->
            <aside class="span4 content sidebar">
			
                <!-- SEARCH -->
                <div class="search-widget clearfix">
				
					<?php
					
						if ( ! get_option( 'hide_contact_search' ) )
						{
							?>
								<form method="get" action="<?php echo home_url( '/' ); ?>">
								
									<div class="input-append">
									
										<input type="text" id="appendedPrependedInput" name="s" size="16" class="span3" placeholder="Enter keyword..." value="<?php the_search_query(); ?>">
										
										<input type="submit" id="searchsubmit" class="send" value="Go">
										
									</div>
									  
								</form>
							<?php
						}
					?>
					
                </div>
                <!-- end SEARCH -->

                <div class="widget">
				
					<?php
					
						if ( get_option( 'contact_us_title' ) != "" ) { echo '<h3>' . stripcslashes( get_option( 'contact_us_title' ) ) . '</h3>'; }
					
					?>
					
                    <div class="contact-info">
					
						<?php
						
							if ( get_option( 'contact_address' ) != "" )
							{
								echo '<p><i class="icon-map-marker"></i>' . stripcslashes( get_option( 'contact_address' ) ) . '</p>';
							}
						
							if ( get_option( 'contact_tel' ) != "" )
							{
								echo '<p><i class="icon-time"></i><b>Tel:</b> ' . stripcslashes( get_option( 'contact_tel' ) ) . '</p>';
							}
						
							if ( get_option( 'contact_fax' ) != "" )
							{
								echo '<p><i class="icon-print"></i><b>Fax:</b> ' . stripcslashes( get_option( 'contact_fax' ) ) . '</p>';
							}
						
							if ( get_option( 'contact_email' ) != "" )
							{
								echo '<p><i class="icon-envelope"></i><b>E-Mail:</b> ' . stripcslashes( get_option( 'contact_email' ) ) . '</p>';
							}
							
						?>
						
                    </div>
					<!-- end .contact-info -->
					
                </div>
				<!-- end .widget -->
				
				<!-- WIDGET -->
				<?php
				
					if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( "contact_page_sidebar" ) ) :
					endif;
				
				?>
				<!-- end WIDGET -->
				
            </aside>
            <!-- end SIDEBAR -->
			
        </section>
        <!-- end MIDDLE -->
		
    </div>
    <!-- end CONTAINER -->
	
<?php

	get_footer();
	
?>